home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 6984 / 6984.xpi / chrome / lazarus.jar / content / common-dialog-overlay.js < prev    next >
Text File  |  2009-11-24  |  571b  |  17 lines

  1.  
  2.  
  3. window.addEventListener("dialogaccept", function(){
  4.     var browser = Lazarus.getBrowser();
  5.     if (browser){
  6.         //the user isn't logged in until the dialog is closed, so we'll need to wait a moment
  7.         //until the login code has run
  8.         //we cannot use setTimeout() on this dialog window, as this window will no longer exist
  9.         //once it has closed.
  10.         browser.setTimeout(function(){
  11.             //attempt to login Lazarus
  12.             browser.Lazarus.loadPrivateKey();
  13.             browser.Lazarus.refreshIcon();
  14.         }, 100);
  15.     }
  16. }, true);
  17.